package com.cy.pojo;

import java.util.Date;

/**
 * 订单管理对象 rest_order
 *
 * @author ruoyi
 * @date 2020-05-18
 */
 public class Order
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;
    /**
     * 用户id
     */
    final String userId="111111";
    /** 公司id */
    private String companyId;

    /** 公司名称 */
    private String companyName;

    /** 订单地址 */
    private String orderAddrees;

    /** 订单编号 */
    private volatile String orderCode;
    /** 订单数 */
    private Long orderNumber;

    /** 1 已下单 ，2 已退单， 3 未打餐 ，4 未打盒，5 未分拣主食 6 未装箱，7 未出发，8 已完成*/
    private String orderStatus;

    /** 接单时间 */
    private Date receiptTime;

    /** 备注 */
    private String bak;

    /** 联系人 */
    private String contacts;

    /** 联系电话 */
    private String contactsNumber;

    /** 总价格 */
    private Double price;

    /** 订单来源 */
    private String orderSource;

    /** 优惠金额 */
    private Double discont;

    /** 积分 */
    private String integral;

    /** 总金额 */
    private Double totalAmount;

    /** 所属流水线 */
    private String flowLine;

    /** 餐品大类名称 */
    private String mealName;

    /** 餐品大类编号 */
    private String mealCode;

    /** 餐品类型编号 */
    private String mealClassCode;
    /** 餐品类型名称 */
    private String mealClassName;
    /**
     * 出发时间
     * @return
     */

    private Date leaveTime;
    /**
     * 主食分拣的状态
     */
    private String foodStates;
    /**
     * 送达时间
     * @return
     */
    private Date serviceTime;
    //仅用于前台展示
    private String name;

    /**
     * 菜品时间区间
     * @return 1 早餐  2 午餐 3 晚餐
     */
    private  String timeType;

    /**
     *  落单号，供退 款和退款查询 使用
     * sxf_uuid
     * @return
     */
    private String sxfUuid;

    /**
     *支付订单号
     * @return
     */
    private String reqId;

    /**
     * 业务返回信息 交易成功/失败/异常
     * @return
     */
    private String bizMsg;
    private String dr;
    //微信支付单号
    private String transactionId;

    /**
     * 优惠券id
     * @return
     */
    private String discontId;

    public Order() {
    }


    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getDiscontId() {
        return discontId;
    }

    public void setDiscontId(String discontId) {
        this.discontId = discontId;
    }

    public String getDr() {
        return dr;
    }

    public void setDr(String dr) {
        this.dr = dr;
    }

    public String getSxfUuid() {
        return sxfUuid;
    }

    public void setSxfUuid(String sxfUuid) {
        this.sxfUuid = sxfUuid;
    }

    public String getReqId() {
        return reqId;
    }

    public void setReqId(String reqId) {
        this.reqId = reqId;
    }

    public String getBizMsg() {
        return bizMsg;
    }

    public void setBizMsg(String bizMsg) {
        this.bizMsg = bizMsg;
    }

    public String getTimeType() {
        return timeType;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }

    public String getUserId() {
        return userId;
    }


    public String getFoodStates() {
        return foodStates;
    }

    public void setFoodStates(String foodStates) {
        this.foodStates = foodStates;
    }

    public String getFlowLine() {
        return flowLine;
    }

    public void setFlowLine(String flowLine) {
        this.flowLine = flowLine;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCompanyId(String companyId)
    {
        this.companyId = companyId;
    }

    public String getCompanyId()
    {
        return companyId;
    }
    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }

    public String getCompanyName()
    {
        return companyName;
    }

    public String getOrderAddrees() {
        return orderAddrees;
    }

    public void setOrderAddrees(String orderAddrees) {
        this.orderAddrees = orderAddrees;
    }

    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode()
    {
        return orderCode;
    }
    public void setOrderNumber(Long orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public Long getOrderNumber()
    {
        return orderNumber;
    }
    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }
    public void setReceiptTime(Date receiptTime)
    {
        this.receiptTime = receiptTime;
    }

    public Date getReceiptTime()
    {
        return receiptTime;
    }
    public void setBak(String bak)
    {
        this.bak = bak;
    }

    public String getBak()
    {
        return bak;
    }
    public void setContacts(String contacts)
    {
        this.contacts = contacts;
    }

    public String getContacts()
    {
        return contacts;
    }

    public String getContactsNumber() {
        return contactsNumber;
    }

    public void setContactsNumber(String contactsNumber) {
        this.contactsNumber = contactsNumber;
    }

    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }
    public void setOrderSource(String orderSource)
    {
        this.orderSource = orderSource;
    }

    public String getOrderSource()
    {
        return orderSource;
    }
    public void setDiscont(Double discont)
    {
        this.discont = discont;
    }

    public Double getDiscont()
    {
        return discont;
    }
    public void setIntegral(String integral)
    {
        this.integral = integral;
    }

    public String getIntegral()
    {
        return integral;
    }
    public void setTotalAmount(Double totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public Double getTotalAmount()
    {
        return totalAmount;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public Date getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(Date serviceTime) {
        this.serviceTime = serviceTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMealName() {
        return mealName;
    }

    public void setMealName(String mealName) {
        this.mealName = mealName;
    }

    public String getMealCode() {
        return mealCode;
    }

    public void setMealCode(String mealCode) {
        this.mealCode = mealCode;
    }

    public String getMealClassCode() {
        return mealClassCode;
    }

    public void setMealClassCode(String mealClassCode) {
        this.mealClassCode = mealClassCode;
    }

    public String getMealClassName() {
        return mealClassName;
    }

    public void setMealClassName(String mealClassName) {
        this.mealClassName = mealClassName;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", companyId='" + companyId + '\'' +
                ", companyName='" + companyName + '\'' +
                ", orderAddrees='" + orderAddrees + '\'' +
                ", orderCode='" + orderCode + '\'' +
                ", orderNumber=" + orderNumber +
                ", orderStatus='" + orderStatus + '\'' +
                ", receiptTime=" + receiptTime +
                ", bak='" + bak + '\'' +
                ", contacts='" + contacts + '\'' +
                ", contactsNumber='" + contactsNumber + '\'' +
                ", price=" + price +
                ", orderSource='" + orderSource + '\'' +
                ", discont=" + discont +
                ", integral='" + integral + '\'' +
                ", totalAmount=" + totalAmount +
                ", flowLine='" + flowLine + '\'' +
                ", mealName='" + mealName + '\'' +
                ", mealCode='" + mealCode + '\'' +
                ", mealClassCode='" + mealClassCode + '\'' +
                ", mealClassName='" + mealClassName + '\'' +
                ", leaveTime=" + leaveTime +
                ", foodStates='" + foodStates + '\'' +
                ", serviceTime=" + serviceTime +
                ", name='" + name + '\'' +
                ", timeType='" + timeType + '\'' +
                ", sxfUuid='" + sxfUuid + '\'' +
                ", reqId='" + reqId + '\'' +
                ", bizMsg='" + bizMsg + '\'' +
                ", dr='" + dr + '\'' +
                ", transactionId='" + transactionId + '\'' +
                ", discontId='" + discontId + '\'' +
                '}';
    }
}
